package com.yxhl.zoume.data.http.rest.repositoryimpl;

import com.yxhl.zoume.data.http.repository.passenger.PassengerRepository;
import com.yxhl.zoume.data.http.rest.param.passenger.AddPassengerParam;
import com.yxhl.zoume.data.http.rest.param.passenger.GetPassengersParam;
import com.yxhl.zoume.data.http.rest.param.passenger.UpdatePassengerParam;
import com.yxhl.zoume.data.http.rest.repositoryimpl.base.BaseDataRepository;
import com.yxhl.zoume.data.http.rest.response.passenger.AddPassengerResponse;
import com.yxhl.zoume.data.http.rest.response.passenger.GetPassengersResponse;
import com.yxhl.zoume.data.http.rest.response.passenger.UpdatePassengerResponse;

import javax.inject.Inject;

import rx.Observable;

/**
 * 乘客相关数据请求
 * <p>
 * Created by Xboy on 16/3/15.
 */
public class PassengerDataRepository extends BaseDataRepository implements PassengerRepository {

    @Inject
    public PassengerDataRepository() {
    }

    @Override
    public Observable<GetPassengersResponse> getAddedPassengers(GetPassengersParam param) {
        return mZouMeService.getAddedPassengers(param);
    }

    @Override
    public Observable<AddPassengerResponse> addNewPassenger(AddPassengerParam param) {
        return mZouMeService.addNewPassenger(param);
    }

    @Override
    public Observable<UpdatePassengerResponse> updatePassenger(UpdatePassengerParam param) {
        return mZouMeService.updatePassenger(param);
    }


}
